/*
 * @author: huangww
 * @Date: 2021-02-24 14:23:25
 * @LastEditTime: 2021-02-25 15:49:51
 * @FilePath: \fmgr\src\core\base\DataBase.ts
 */
namespace core {
  export abstract class DataBase {
    type: DATAMODULE;
    data: any;
    constructor(type: DATAMODULE) {
      this.type = type;
      this.data = {};
    }

    dispatch(action, data) {
      CMDMgr.getInstance().dispatch(this.type, action, data);
    }

    abstract check(msg: Msg);
    abstract updateData(msg: Msg);
  }
}